home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 41 / Amiga Format CD41 (1999-06)(Future Publishing)(GB)[!][issue 1999-07].iso / -seriously_amiga- / misc / vinced / include / vnc / requester.h < prev    next >
C/C++ Source or Header  |  1999-04-19  |  3KB  |  73 lines

  1. #ifndef VNC_REQUESTER_H
  2. #define VNC_REQUESTER_H
  3. /*********************************************************
  4.  ** ViNCEd                                              **
  5.  ** a DOS - window handler                              **
  6.  **                                                     **
  7.  ** © 1991-98 THOR-Software inc.                        **
  8.  ** Version 3.60                                        **
  9.  **                                                     **
  10.  ** program version 3.60 22 Aug 98      THOR            **
  11.  **                                                     **
  12.  ** ViNCEd Standard Requesters                          **
  13.  **-----------------------------------------------------**
  14.  **                                                     **
  15.  ** all use at your own risk,etc.,etc.                  **
  16.  **                                                     **
  17.  ** Everything declared as "reserved" or                **
  18.  ** "not used" is NOT free for your use,                **
  19.  ** it will propably used in a later release.           **
  20.  ** All FREE entries are free for public                **
  21.  ** use and are, if not otherwise noticed,              **
  22.  ** initialized as ZERO                                 **
  23.  *********************************************************/
  24.  
  25. #ifndef EXEC_TYPES_H
  26. #include <exec/types.h>
  27. #endif
  28.  
  29. #ifndef INTUITION_INTUTION_H
  30. #include <intuition/intuition.h>
  31. #endif
  32.  
  33. /* This is a standard file requester. Either arp or asl (or reqtools)
  34.    requesters are used to display them. This works in all OS revisions. */
  35.  
  36. struct ViRequest {
  37.         char            *vreq_Hail;     /* title string */
  38.         char            *vreq_File;     /* file name */
  39.         char            *vreq_Dir;      /* directory name */
  40.         struct Window   *vreq_Window;   /* window to lock */
  41.         UWORD            vreq_Flags;    /* flags, see below */
  42.         ULONG            vreq_reserved; /* must be zero */
  43.         char            *vreq_Pattern;  /* pattern matching string */
  44.  
  45.         WORD             vreq_LeftEdge; /* requested positions */
  46.         WORD             vreq_TopEdge;
  47.  
  48.         UWORD            vreq_Width;    /* requested size */
  49.         UWORD            vreq_Height;
  50. };
  51.  
  52.  
  53. /* Split file name in file and directory, fill in dir automatically */
  54. #define VREQ_AUTOSPLIT_BIT      0
  55. #define VREQ_AUTOSPLIT_MASK     (1L<<0)
  56.  
  57. /* Split file in dir and pattern, clear file */
  58. #define VREQ_AUTOPAT_BIT        1
  59. #define VREQ_AUTOPAT_MASK       (1L<<1)
  60.  
  61. /* Join file and dir after requesting */
  62. #define VREQ_AUTOJOIN_BIT       2
  63. #define VREQ_AUTOJOIN_MASK      (1L<<2)
  64.  
  65. /* Requester dimensions are valid. This bit must be set or
  66.    the vreq_LeftEdge to vreq_Height fields are ignored. Strictly
  67.    for backwards compatibility */
  68. #define VREQ_DIMENSIONS_BIT     8
  69. #define VREQ_DIMENSIONS_MASK    (1L<<8)
  70.  
  71. #endif
  72.  
  73.